package com.hnucm.springmvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

//直接帮我们创建对象loginController
@Controller
public class LoginController {
    @RequestMapping("login")
    public ModelAndView showLogin(){
        return new ModelAndView("login.jsp");
    }
}
